abstract class Vehicle {
    private int wheels;  // 车轮的个数
    private double weight; // 车重
    abstract void isLoader(); // 判断是否超载的抽象方法
    abstract void isOverweiht(); // 判断是否超重
    // 构造方法
    public Vehicle(){

    }
    public Vehicle(int wheels, double weight) {
        this.wheels = wheels;
        this.weight = weight;
    }

    // get,set方法
    public int getWheels(){
        return wheels;
    }
    public void setWheels(int wheels){
        this.wheels = wheels;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

}
